add-mips64-support
authorAron Xu <aron@debian.org>
Fri, 25 Nov 2016 16:51:25 +0000 (16:51 +0000)
committerJean Baptiste Favre <debian@jbfavre.org>
Fri, 25 Nov 2016 16:51:25 +0000 (16:51 +0000)
Gbp-Pq: Name 0002-add-mips64-support.patch

lib/ts/ink_queue.h

index 6794fb4d02e622dc146b5f60bca4f97502358b3c..eaba53a993f29ac661b06dd673284a94832aa00c 100644 (file)
@@ -133,7 +133,7 @@ typedef union {
 #define SET_FREELIST_POINTER_VERSION(_x, _p, _v) \
   (_x).s.pointer = _p;                           \
   (_x).s.version = _v
-#elif defined(__x86_64__) || defined(__ia64__) || defined(__powerpc64__) || defined(__aarch64__)
+#elif defined(__x86_64__) || defined(__ia64__) || defined(__powerpc64__) || defined(__aarch64__) || defined(__mips64)
 #define FREELIST_POINTER(_x) \
   ((void *)(((((intptr_t)(_x).data) << 16) >> 16) | (((~((((intptr_t)(_x).data) << 16 >> 63) - 1)) >> 48) << 48))) // sign extend
 #define FREELIST_VERSION(_x) (((intptr_t)(_x).data) >> 48)